/*
 * Project: BoboDesignPattern
 * 
 * File Created at 2019年2月6日
 * 
 * Copyright 2012 Greenline.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Greenline Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Greenline.com.
 */
package mediator;

/**
 * @Type Finacial
 * @Desc
 * @author 52489
 * @date 2019年2月6日
 * @Version V1.0
 */
public class Finacial implements Department {

    private Mediator m; // 持有中介者（总经理）的引用

    /**
     * @param m
     */
    public Finacial(Mediator m) {
        super();
        this.m = m;
        m.register("finacial", this);
    }

    /*
     * (non-Javadoc)
     * 
     * @see mediator.Department#selfAction()
     */
    @Override
    public void selfAction() {
        System.out.println("数钱");
    }

    /*
     * (non-Javadoc)
     * 
     * @see mediator.Department#outAction()
     */
    @Override
    public void outAction() {
        System.out.println("汇报工作,钱太多，怎么花？");
    }

}
